package com.base.service.impl;

import com.base.mapper.voipmapper.CompanyArticleMapper;
import com.base.po.voip.CompanyArticle;
import com.base.po.voip.CompanyArticleExample;
import com.base.service.CompanyArticleService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("companyArticleService")
public class CompanyArticleServiceImpl implements CompanyArticleService {
	
	@Autowired
	private CompanyArticleMapper companyArticleMapper;


	@Override
	public int countByExample(CompanyArticleExample example) {
		return companyArticleMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CompanyArticleExample example) {
		return companyArticleMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return companyArticleMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CompanyArticle record) {
		return companyArticleMapper.insert(record);
	}

	@Override
	public int insertSelective(CompanyArticle record) {
		return companyArticleMapper.insertSelective(record);
	}

	@Override
	public List<CompanyArticle> selectByExample(CompanyArticleExample example) {
		return companyArticleMapper.selectByExample(example);
	}

	@Override
	public List<CompanyArticle> selectByParentID(Page page, String parentid, String title, String classifyid) {
		return companyArticleMapper.selectByParentID(page, parentid, title, classifyid);
	}

	@Override
	public List<CompanyArticle> selectAll(String parentid) {
		return companyArticleMapper.selectAll(parentid);
	}

	@Override
	public CompanyArticle selectByPrimaryKey(Integer id) {
		return companyArticleMapper.selectByPrimaryKey(id);
	}

	@Override
	public CompanyArticle selectNextId(Integer id, String parentid) {
		return companyArticleMapper.selectNextId(id, parentid);
	}

	@Override
	public int updateByExampleSelective(CompanyArticle record, CompanyArticleExample example) {
		return companyArticleMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(CompanyArticle record, CompanyArticleExample example) {
		return companyArticleMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(CompanyArticle record) {
		return companyArticleMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CompanyArticle record) {
		return companyArticleMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countByParentID(String parentid, String title, String classifyid) {
		return companyArticleMapper.countByParentID(parentid, title, classifyid);
	}
}
